package esception;

public class ThrowDemo {
    public static void main(String[] args) throws IllegalAgeException {
        Student zs = new Student();
        zs.setAge(2000);
        System.out.println("此人年龄为："+zs.getAge()+"岁");
    }

}
